<!DOCTYPE html>
<html lang="en">
  <head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">


  <title>Posts-blog.qikqiak.com|阳明的博客|Kubernetes|Docker|Python|Golang|Cloud Native</title>
  <meta property="og:title" content="Posts" />
  <meta name="twitter:title" content="Posts" />

  <meta name="author" content=""/>
  <link href='https://blog.qikqiak.com/img/favicon.ico' rel='icon' type='image/x-icon'/>
  <meta property="og:image" content="https://blog.qikqiak.com/img/avatar.jpeg" />
  <meta name="twitter:image" content="https://blog.qikqiak.com/img/avatar.jpeg" />
  <meta name="twitter:card" content="summary" />
  <meta property="og:url" content="https://blog.qikqiak.com/post/" />
  <meta property="og:type" content="website" />
  <meta property="og:site_name" content="阳明的博客" />

  <meta name="generator" content="Hugo 0.34" />
  <link rel="canonical" href="https://blog.qikqiak.com/post/" />
  <link rel="alternate" href="https://blog.qikqiak.com/index.xml" type="application/rss+xml" title="阳明的博客">
  <link href="https://cdn.bootcss.com/KaTeX/0.7.1/katex.min.css" rel="stylesheet">
  <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
  <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
  <link rel="stylesheet" href="https://blog.qikqiak.com/css/main.css?t=1235" />
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" />
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" />
  <link rel="stylesheet" href="https://blog.qikqiak.com/css/pygment_highlights.css" />
  <link rel="stylesheet" href="https://blog.qikqiak.com/css/highlight.min.css" />
  <link rel="stylesheet" href="https://blog.qikqiak.com/css/prism.css?t=123" />
  <link rel="stylesheet" href="https://blog.qikqiak.com/css/search.css" />
<meta name="keywords" content="">
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?970de9920f6089c287a7fd366138d4e9";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
</script>



<link href="https://cdn.bootcss.com/photoswipe/4.1.1/photoswipe.min.css" rel="stylesheet">
<link href="https://cdn.bootcss.com/photoswipe/4.1.1/default-skin/default-skin.min.css" rel="stylesheet">



<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">

<div class="pswp__bg"></div>

<div class="pswp__scroll-wrap">
    
    <div class="pswp__container">
      <div class="pswp__item"></div>
      <div class="pswp__item"></div>
      <div class="pswp__item"></div>
    </div>
    
    <div class="pswp__ui pswp__ui--hidden">
    <div class="pswp__top-bar">
      
      <div class="pswp__counter"></div>
      <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
      <button class="pswp__button pswp__button--share" title="Share"></button>
      <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
      <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
      
      
      <div class="pswp__preloader">
        <div class="pswp__preloader__icn">
          <div class="pswp__preloader__cut">
            <div class="pswp__preloader__donut"></div>
          </div>
        </div>
      </div>
    </div>
    <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
      <div class="pswp__share-tooltip"></div>
    </div>
    <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
    </button>
    <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
    </button>
    <div class="pswp__caption">
      <div class="pswp__caption__center"></div>
    </div>
    </div>
    </div>
</div>

<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-69668147-3', 'auto');
ga('send', 'pageview');
</script>
<script async src='//www.google-analytics.com/analytics.js'></script>

</head>

  <body>
    <nav class="navbar navbar-default navbar-fixed-top navbar-custom">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navbar">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="https://blog.qikqiak.com/">阳明的博客</a>
    </div>

    <div class="collapse navbar-collapse" id="main-navbar">
      <ul class="nav navbar-nav navbar-right">
        
          
            <li>
              <a title="Home" href="https://ydzs.io">Home</a>
            </li>
          
        
          
            <li class="navlinks-container">
              <a class="navlinks-parent" href="javascript:void(0)">Categories</a>
              <div class="navlinks-children">
                
                  <a href="https://blog.qikqiak.com/page/archive/">Archive</a>
                
                  <a href="https://blog.qikqiak.com/tags">tags</a>
                
                  <a href="https://blog.qikqiak.com/tags/kubernetes">kubernetes</a>
                
                  <a href="https://blog.qikqiak.com/tags/python">python</a>
                
                  <a href="https://blog.qikqiak.com/tags/django">django</a>
                
                  <a href="https://blog.qikqiak.com/tags/ops">devops</a>
                
              </div>
            </li>
          
        
          
            <li class="navlinks-container">
              <a class="navlinks-parent" href="javascript:void(0)">海马学院</a>
              <div class="navlinks-children">
                
                  <a href="https://www.haimaxy.com/course/6y02wp/?utm_source=blog&amp;utm_campaign=referral&amp;utm_medium=topmenu">Python微服务实战</a>
                
                  <a href="https://www.haimaxy.com/course/pww13p/?utm_source=blog&amp;utm_campaign=referral&amp;utm_medium=topmenu">Webpack3.x 入门</a>
                
                  <a href="https://www.haimaxy.com/course/pjrqxm/?utm_source=blog&amp;utm_campaign=referral&amp;utm_medium=topmenu">Kubernetes 集群搭建</a>
                
              </div>
            </li>
          
        
          
            <li>
              <a title="About" href="https://blog.qikqiak.com/page/about/">About</a>
            </li>
          
        

        

        

        
          <li>
            <a href="#modalSearch" data-toggle="modal" data-target="#modalSearch" style="outline: none;">
              <span class="hidden-sm hidden-md hidden-lg">Search</span> <span id="searchGlyph" class="glyphicon glyphicon-search"></span>
            </a>
          </li>
          

      </ul>
    </div>

    <div class="avatar-container">
      <div class="avatar-img-border">
        
          <a title="阳明的博客" href="https://blog.qikqiak.com/">
            <img class="avatar-img" src="https://blog.qikqiak.com/img/avatar.jpeg" alt="阳明的博客" />
          </a>
        
      </div>
    </div>

  </div>
</nav>





  <div id="modalSearch" class="modal fade" role="dialog">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal">&times;</button>
          <h4 class="modal-title">Search blog.qikqiak.com</h4>
        </div>
        <div class="modal-body">
            
<div class="aa-input-container" id="aa-input-container">
    <input type="search" id="aa-search-input" class="aa-input-search" placeholder="Search for titles or URIs..." name="search" autocomplete="off" />
    <svg class="aa-input-icon" viewBox="654 -372 1664 1664">
        <path d="M1806,332c0-123.3-43.8-228.8-131.5-316.5C1586.8-72.2,1481.3-116,1358-116s-228.8,43.8-316.5,131.5  C953.8,103.2,910,208.7,910,332s43.8,228.8,131.5,316.5C1129.2,736.2,1234.7,780,1358,780s228.8-43.8,316.5-131.5  C1762.2,560.8,1806,455.3,1806,332z M2318,1164c0,34.7-12.7,64.7-38,90s-55.3,38-90,38c-36,0-66-12.7-90-38l-343-342  c-119.3,82.7-252.3,124-399,124c-95.3,0-186.5-18.5-273.5-55.5s-162-87-225-150s-113-138-150-225S654,427.3,654,332  s18.5-186.5,55.5-273.5s87-162,150-225s138-113,225-150S1262.7-372,1358-372s186.5,18.5,273.5,55.5s162,87,225,150s113,138,150,225  S2062,236.7,2062,332c0,146.7-41.3,279.7-124,399l343,343C2305.7,1098.7,2318,1128.7,2318,1164z" />
    </svg>
</div>
<script src="https://res.cloudinary.com/jimmysong/raw/upload/rootsongjc-hugo/algoliasearch.min.js"></script>
<script src="https://res.cloudinary.com/jimmysong/raw/upload/rootsongjc-hugo/autocomplete.min.js"></script>

<script>
var client = algoliasearch("1JDRAS0AZR", "8804ac109158bb3bb60d74ce98fa332f");
var index = client.initIndex('prod_blog');

autocomplete('#aa-search-input',
{ hint: false}, {
    source: autocomplete.sources.hits(index, {hitsPerPage: 5}),
    
    displayKey: 'name',
    
    templates: {
        
        suggestion: function(suggestion) {
            return '<span>' + '<a href="https://blog.qikqiak.com/post/' + suggestion.slug + '">' +
            suggestion._highlightResult.title.value + '</a></span>';
        }
    }
});
</script>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">close</button>
        </div>
      </div>
    </div>
  </div>

    
  <header class="header-section ">
    <div class="intro-header no-img">
      <div class="container">
        <div class="row">
          <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
            <div class="page-heading">
              <h1>Posts</h1>
              <hr class="small">
            </div>
          </div>
        </div>
      </div>
    </div>
  </header>

    
  <div class="container" role="main">
    <div class="row">
      <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
        
        <div class="posts-list">
          
            <article class="post-preview">
              <a href="https://blog.qikqiak.com/post/haimaxy-online/">
                <h2 class="post-title">好吧，海马学院正式上线了</h2>

                
                  <h3 class="post-subtitle">
                    一个互联网实战项目学习平台
                  </h3>
                
              </a>

              <p class="post-meta">
                Posted on April 2, 2018
              </p>
              <div class="post-entry">
                
                  <p><a href="https://www.haimaxy.com">海马学院</a>这个 Sideproject 我断断续续差不多做了一年了，最开始的需求是身边有几个做客户端的朋友想要学习<code>Python</code>，然后我给他们推荐了几本入门的书籍，然后遇到问题的时候再来问我，慢慢地他们发现这种方式学习太慢了，主要是太不系统了，然后我就说要不我给你们录制一套实战项目的视频吧，你们跟着做一遍实际的项目肯定感觉就会好很多了，而且根据我个人的学习经验来说，学习一门编程语言最好的方式方法就是做一个实际的项目，最后的结果当然也是符合预期的，现在他们基本上能独立完成一个 Web 项目了。</p>

<p></p>
                  <a href="https://blog.qikqiak.com/post/haimaxy-online/" class="post-read-more">[Read More]</a>
                
              </div>

              
                <span class="post-meta">
                  
                    #<a href="https://blog.qikqiak.com/tags/%E6%B5%B7%E9%A9%AC%E5%AD%A6%E9%99%A2/">海马学院</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/%E4%B8%80%E7%82%B9%E7%9F%A5%E8%AF%86/">一点知识</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/%E4%B8%8A%E7%BA%BF/">上线</a>&nbsp;
                  
                </span>
              

            </article>
          
            <article class="post-preview">
              <a href="https://blog.qikqiak.com/post/k8s-tech-weekly-collection-phase3/">
                <h2 class="post-title">k8s技术圈一周精选[第3期]</h2>

                
              </a>

              <p class="post-meta">
                Posted on April 1, 2018
              </p>
              <div class="post-entry">
                
                  <p>老规矩，本周的<code>k8s技术圈</code>的几个精选的问题，分享给大家。另外，也欢迎大家加入我们的<code>【微信群】</code>和<code>【知识星球】</code>共同探讨，共同进步。</p>

<p></p>
                  <a href="https://blog.qikqiak.com/post/k8s-tech-weekly-collection-phase3/" class="post-read-more">[Read More]</a>
                
              </div>

              
                <span class="post-meta">
                  
                    #<a href="https://blog.qikqiak.com/tags/kubernetes/">kubernetes</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/%E7%9F%A5%E8%AF%86%E6%98%9F%E7%90%83/">知识星球</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/k8s%E6%8A%80%E6%9C%AF%E5%9C%88/">k8s技术圈</a>&nbsp;
                  
                </span>
              

            </article>
          
            <article class="post-preview">
              <a href="https://blog.qikqiak.com/post/skaffold-simple-local-develop-k8s-app-tools/">
                <h2 class="post-title">Skaffold-简化本地开发kubernetes应用的神器</h2>

                
                  <h3 class="post-subtitle">
                    墙裂推荐kubernetes应用开发者使用的工具
                  </h3>
                
              </a>

              <p class="post-meta">
                Posted on March 27, 2018
              </p>
              <div class="post-entry">
                
                  <p>在我们开发<code>kubernetes</code>应用的过程中，一般情况下是我们在本地开发调试测试完成以后，再通过<code>CI/CD</code>的方式部署到<code>kubernetes</code>的集群中，这个过程首先是非常繁琐的，而且效率非常低下，因为你想验证你的每次代码修改，就得提交代码重新走一遍<code>CI/CD</code>的流程，我们知道编译打包成镜像这些过程就是很耗时的，即使我们在自己本地搭建一套开发<code>kubernetes</code>集群，也同样的效率很低。在实践中，若不在本地运行那些服务，调试将变得颇具挑战。就在几天前，我遇到了<code>Skaffold</code>，它是一款命令行工具，旨在促进<code>kubernetes</code>应用的持续开发，<code>Skaffold</code>可以将构建、推送及向<code>kubernetes</code>集群部署应用程序的过程自动化，听上去是不是很舒服呀~~~</p>

<p></p>
                  <a href="https://blog.qikqiak.com/post/skaffold-simple-local-develop-k8s-app-tools/" class="post-read-more">[Read More]</a>
                
              </div>

              
                <span class="post-meta">
                  
                    #<a href="https://blog.qikqiak.com/tags/kubernetes/">kubernetes</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/skaffold/">skaffold</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/ci/cd/">CI/CD</a>&nbsp;
                  
                </span>
              

            </article>
          
            <article class="post-preview">
              <a href="https://blog.qikqiak.com/post/k8s-tech-weekly-collection-phase2/">
                <h2 class="post-title">k8s技术圈一周精选[第2期]</h2>

                
              </a>

              <p class="post-meta">
                Posted on March 25, 2018
              </p>
              <div class="post-entry">
                
                  <p>上周我们发布了<a href="https://blog.qikqiak.com/post/k8s-tech-weekly-collection-phase1/">k8s技术圈一周精选第1期</a>，从后面的反馈来看非常不错，之前很多问题其实大家都遇到过，只是没有记录沉淀下来，导致后面很多同学去踩同样的坑，这其实是非常浪费时间浪费资源的。一周时间还是非常快的，这不我们的第2期又来了。</p>

<p>另外，也欢迎大家加入我们的<code>【微信群】</code>和<code>【知识星球】</code>共同探讨，共同进步。</p>

<p></p>
                  <a href="https://blog.qikqiak.com/post/k8s-tech-weekly-collection-phase2/" class="post-read-more">[Read More]</a>
                
              </div>

              
                <span class="post-meta">
                  
                    #<a href="https://blog.qikqiak.com/tags/kubernetes/">kubernetes</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/%E7%9F%A5%E8%AF%86%E6%98%9F%E7%90%83/">知识星球</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/k8s%E6%8A%80%E6%9C%AF%E5%9C%88/">k8s技术圈</a>&nbsp;
                  
                </span>
              

            </article>
          
            <article class="post-preview">
              <a href="https://blog.qikqiak.com/post/kubernetes-resource-quota-usage/">
                <h2 class="post-title">kubernetes 的资源配额控制器</h2>

                
              </a>

              <p class="post-meta">
                Posted on March 23, 2018
              </p>
              <div class="post-entry">
                
                  <p>有很多团队在使用<code>kubernetes</code>的时候是将一个<code>namespace</code>当成一个租户的，所以对<code>namespace</code>的权限控制，资源控制就很重要了，你总是会担心你的某个租户使用的资源就超出了应有的配额。幸运的是<code>kubernetes</code>本身就为我们提供了解决这一问题的工具：资源配额控制器(<code>ResourceQuotaController</code>)</p>

<p>资源配额控制器确保了指定的资源对象始终不会超过配置的资源，能够有效的降低整个系统宕机的机率，增强系统的鲁棒性，对整个集群的稳定性有非常重要的作用。</p>

<p></p>
                  <a href="https://blog.qikqiak.com/post/kubernetes-resource-quota-usage/" class="post-read-more">[Read More]</a>
                
              </div>

              
                <span class="post-meta">
                  
                    #<a href="https://blog.qikqiak.com/tags/kubernetes/">kubernetes</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/resource/">resource</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/quato/">quato</a>&nbsp;
                  
                </span>
              

            </article>
          
            <article class="post-preview">
              <a href="https://blog.qikqiak.com/post/k8s-tech-weekly-collection-phase1/">
                <h2 class="post-title">k8s技术圈一周精选[第1期]</h2>

                
              </a>

              <p class="post-meta">
                Posted on March 18, 2018
              </p>
              <div class="post-entry">
                
                  <p>一转眼都已经过了龙抬头的日子了，可能你自己没注意到，要是仔细一算的话，2018年已经过了1/4了，是不是今年的规划还没提上日程呢？总之，咱们还是需要撸起袖子加油继续干啊~~~</p>

<p>今天的文章是总结我们<code>知识星球</code>在本周的一些精华的分享内容，同时，也欢迎大家加入我们的<code>【微信群】</code>和<code>【知识星球】</code>共同探讨，共同进步。</p>

<p></p>
                  <a href="https://blog.qikqiak.com/post/k8s-tech-weekly-collection-phase1/" class="post-read-more">[Read More]</a>
                
              </div>

              
                <span class="post-meta">
                  
                    #<a href="https://blog.qikqiak.com/tags/kubernetes/">kubernetes</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/%E7%9F%A5%E8%AF%86%E6%98%9F%E7%90%83/">知识星球</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/k8s%E6%8A%80%E6%9C%AF%E5%9C%88/">k8s技术圈</a>&nbsp;
                  
                </span>
              

            </article>
          
            <article class="post-preview">
              <a href="https://blog.qikqiak.com/post/understand-kubernetes-affinity/">
                <h2 class="post-title">理解 Kubernetes 的亲和性调度</h2>

                
                  <h3 class="post-subtitle">
                    nodeSelector、nodeAffinity、podAffinity、Taints以及Tolerations用法
                  </h3>
                
              </a>

              <p class="post-meta">
                Posted on March 8, 2018
              </p>
              <div class="post-entry">
                
                  <p>一般情况下我们部署的 POD 是通过集群自动调度选择某个节点的，默认情况下调度器考虑的是资源足够，并且负载尽量平均，但是有的时候我们需要能够更加细粒度的去控制 POD 的调度，比如我们内部的一些服务 gitlab 之类的也是跑在<code>Kubernetes</code>集群上的，我们就不希望对外的一些服务和内部的服务跑在同一个节点上了，害怕内部服务对外部的服务产生影响；有的时候呢我们两个服务直接交流比较频繁，又希望能够将这两个服务的 POD 调度到同样的节点上。这就需要用到 Kubernetes 里面的一个概念：亲和性，亲和性主要分为两类：<code>nodeAffinity</code>和<code>podAffinity</code>。</p>

<p></p>
                  <a href="https://blog.qikqiak.com/post/understand-kubernetes-affinity/" class="post-read-more">[Read More]</a>
                
              </div>

              
                <span class="post-meta">
                  
                    #<a href="https://blog.qikqiak.com/tags/kubernetes/">kubernetes</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/affinity/">affinity</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/%E8%B0%83%E5%BA%A6/">调度</a>&nbsp;
                  
                </span>
              

            </article>
          
            <article class="post-preview">
              <a href="https://blog.qikqiak.com/post/hugo-integrated-gitment-plugin/">
                <h2 class="post-title">Hugo 集成 Gitment 评论插件</h2>

                
              </a>

              <p class="post-meta">
                Posted on March 5, 2018
              </p>
              <div class="post-entry">
                
                  <p>前面我们为<a href="https://gohugo.io/">Hugo</a>集成了<code>Algolia</code>搜索插件，要让我们的网站具备博客的基本功能的话，一般情况下评论也是非常需要的，评论承载着作者与读者之间交流的桥梁，所以我们可以看到市面上有很多单独的评论服务，比如最出名的<a href="https://disqus.com/">disqus</a>，国内也有之前比较出名的<code>多说</code>(现在已经关闭)、<a href="http://www.uyan.cc/">有言</a>等等，要使用他们非常简单，只需要嵌入一些简单的代码即刻开启移动社交评论
服务。不是这些服务不好，只是觉得稍微有点笨重，这里我们使用一个基于<code>GitHub Issues</code>的轻量级评论系统：<a href="https://github.com/imsun/gitment">Gitment</a>。</p>

<p></p>
                  <a href="https://blog.qikqiak.com/post/hugo-integrated-gitment-plugin/" class="post-read-more">[Read More]</a>
                
              </div>

              
                <span class="post-meta">
                  
                    #<a href="https://blog.qikqiak.com/tags/hugo/">Hugo</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/gitment/">gitment</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/github/">github</a>&nbsp;
                  
                </span>
              

            </article>
          
            <article class="post-preview">
              <a href="https://blog.qikqiak.com/post/use-downward-api-get-pod-info/">
                <h2 class="post-title">Kubernetes Downward API 基本用法</h2>

                
              </a>

              <p class="post-meta">
                Posted on March 2, 2018
              </p>
              <div class="post-entry">
                
                  <p>前面在<code>k8s技术圈</code>微信群里面有朋友问到如何在容器中获取 POD 的基本信息，其实<code>kubernetes</code>原生就提供了支持的，那就是<code>Downward API</code>。</p>

<p></p>
                  <a href="https://blog.qikqiak.com/post/use-downward-api-get-pod-info/" class="post-read-more">[Read More]</a>
                
              </div>

              
                <span class="post-meta">
                  
                    #<a href="https://blog.qikqiak.com/tags/kubernetes/">kubernetes</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/pod/">pod</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/downward/">downward</a>&nbsp;
                  
                </span>
              

            </article>
          
            <article class="post-preview">
              <a href="https://blog.qikqiak.com/post/hugo-integrated-algolia-search/">
                <h2 class="post-title">Hugo 集成 Algolia 搜索</h2>

                
              </a>

              <p class="post-meta">
                Posted on February 23, 2018
              </p>
              <div class="post-entry">
                
                  <p><a href="https://gohugo.io/">Hugo</a>是由 Steve Francis 大神(<a href="http://spf13.com/">http://spf13.com/</a>)基于<code>Go</code>语言开发的静态网站构建工具。没错你现在看到的本博客就是基于<code>Hugo</code>的，使用 Hugo 创建一个网站是非常简单的，基本上没有什么门槛，官方还提供了大量的主题供你选择，你只需要专心写的文章就行。不过有个问题是搜索，我们知道搜索属于动态行为了，如何给静态网站增加搜索功能呢？当然我们可以使用<code>Google</code>的站内搜索功能，Hugo 官方也提供了一些开源的和商业的解决方案，今天我们要介绍的就是一个非常优秀的商业解决方案：<a href="https://www.algolia.com/">Algolia</a>。</p>

<p></p>
                  <a href="https://blog.qikqiak.com/post/hugo-integrated-algolia-search/" class="post-read-more">[Read More]</a>
                
              </div>

              
                <span class="post-meta">
                  
                    #<a href="https://blog.qikqiak.com/tags/hugo/">Hugo</a>&nbsp;
                  
                    #<a href="https://blog.qikqiak.com/tags/algolia/">Algolia</a>&nbsp;
                  
                </span>
              

            </article>
          
        </div>
        
          <ul class="pager main-pager">
            
            
              <li class="next">
                <a href="https://blog.qikqiak.com/post/page/2">Older Posts &rarr;</a>
              </li>
            
          </ul>
        
      </div>
    </div>
  </div>

    <footer>
  <div class="container">
    <div class="row">
      <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
        <ul class="list-inline text-center footer-links">
          
              <li>
                <a href="mailto:icnych@gmail.com" title="Email me">
                  <span class="fa-stack fa-lg">
                    <i class="fa fa-circle fa-stack-2x"></i>
                    <i class="fa fa-envelope fa-stack-1x fa-inverse"></i>
                  </span>
                </a>
              </li>
          
              <li>
                <a href="https://github.com/cnych" title="GitHub">
                  <span class="fa-stack fa-lg">
                    <i class="fa fa-circle fa-stack-2x"></i>
                    <i class="fa fa-github fa-stack-1x fa-inverse"></i>
                  </span>
                </a>
              </li>
          
              <li>
                <a href="https://weibo.com/cnych" title="微博">
                  <span class="fa-stack fa-lg">
                    <i class="fa fa-circle fa-stack-2x"></i>
                    <i class="fa fa-weibo fa-stack-1x fa-inverse"></i>
                  </span>
                </a>
              </li>
          
              <li>
                <a href="https://instagram.com/cnych" title="Instagram">
                  <span class="fa-stack fa-lg">
                    <i class="fa fa-circle fa-stack-2x"></i>
                    <i class="fa fa-instagram fa-stack-1x fa-inverse"></i>
                  </span>
                </a>
              </li>
          
          
          <li>
            <a href="https://blog.qikqiak.com/index.xml" title="RSS">
              <span class="fa-stack fa-lg">
                <i class="fa fa-circle fa-stack-2x"></i>
                <i class="fa fa-rss fa-stack-1x fa-inverse"></i>
              </span>
            </a>
          </li>
          
        </ul>
        <p class="credits copyright text-muted">
          

          &nbsp;&bull;&nbsp;
          2018

          
            &nbsp;&bull;&nbsp;
            <a href="https://blog.qikqiak.com/">阳明的博客</a>
          
        </p>
        
        <p class="credits theme-by text-muted">
          <a href="http://gohugo.io">Hugo v0.34</a> powered &nbsp;&bull;&nbsp; Theme by <a href="http://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a> adapted to <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a>
          
        </p>
      </div>
    </div>
  </div>
</footer>

<script src="https://cdn.bootcss.com/KaTeX/0.7.1/katex.min.js"></script>
<script src="https://cdn.bootcss.com/KaTeX/0.7.1/contrib/auto-render.min.js"></script>
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://blog.qikqiak.com/js/main.min.js"></script>
<script src="https://blog.qikqiak.com/js/highlight.min.js"></script>
<script> hljs.initHighlightingOnLoad(); </script>
<script> renderMathInElement(document.body); </script>
<script src="https://blog.qikqiak.com/js/prism.js?t=123"></script>
<script src="https://cdn.bootcss.com/photoswipe/4.1.1/photoswipe.min.js"></script>
<script src="https://cdn.bootcss.com/photoswipe/4.1.1/photoswipe-ui-default.min.js"></script>
<script src="https://blog.qikqiak.com/js/load-photoswipe.min.js"></script>



<script async src="https://www.googletagmanager.com/gtag/js?id=UA-69668147-3"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'UA-69668147-3');
</script>

  </body>
</html>

